package com.geektime.hello.mapstruct;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserConvert {

    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    @Mappings(value = {
            @Mapping(source = "doType", target = "boType")
    })
    UserBO convert(UserDO userDO);

}
